<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<title>欢迎登录系统</title>
<script language="javascript">
	function nexthasdstock(){
		var num = parseInt($("#pagenum").val());
		$.post("/welcome/ajaxbutton", {"op": "getnexthasdstock","num":num},
	  function(data){
			if(data)
			{
				num+=1;
					
			$("#pagenum").val(num);
				var tmp="";
					for(var i=0;i<data.length;i++)
					{
						tmp+="  <tr>";
						tmp+="  <td><a href=\"/product/productlist?ty=1&other="+data[i].goods_sku+"\" target=\"_blank\"><font color=\"red\">"+data[i].goods_sku+"</font></a></td>";
						tmp+="  <td>"+data[i].goods_instock+"</td>";
						tmp+="  <td>"+data[i].stock+"</td>";
						tmp+="  <td>"+data[i].goods_name+"</td>";
						tmp+="  <td>"+data[i].g_updatetime+"</td>";
						tmp+="  <td>"+data[i].memo+"</td></tr>";
						
					}
					
					$("#stocklist").html(tmp);	
			}
			
	   },"json");	
	}
</script>
</head>

<body class="withvernav">

<div class="bodywrapper">
     <div class="centercontent tables">
       <div class="pageheader notab">
            <h1 class="pagetitle">欢迎登录</h1>
           <ul class="hornav">
           		<li class="current"><a href="/product/productlist">今日信息</a></li>
                <li><a href="/product/productlist">商品列表</a></li>
                <li><a href="/orderlist/orderlist">订单列表</a></li>
            </ul>
        </div><!--pageheader-->
        
        <div id="contentwrapper" class="contentwrapper">
        
        	<div id="updates" class="subcontent">
                <!-- 超级管理员查看没有订单的店铺-->
                {{if $userdepartment eq 1 && $shopnoorder}}
               
                    <div class="notibar announcement">
                        <p> {{$shopdays}}天未出单店铺：
                            {{foreach from=$shopnoorder item=li key=key}}
                                {{$li.shopname}};
                            {{/foreach}}
                        </p>
                    </div>
                {{/if}}
                <!-- 超级管理员查看没有订单的店铺-->
                {{if $userdepartment eq 1 && $shopnofbaorder}}
                <div class="notibar announcement">
                    <p>FBA{{$fbashopdays}}天未出单店铺：
                        {{foreach from=$shopnofbaorder item=li key=key}}
                        {{$li.shopname}};
                        {{/foreach}}
                    </p>
                </div>
                {{/if}}
            	{{if $gettwogoods}}
                     <div class="notibar announcement">
                        <p>{{$gettwogoods}}</p>
                    </div>
                {{/if}}
                {{if $checkAmazonOrder}}
                     <div class="notibar announcement">
                        <p>{{$checkAmazonOrder}}</p>
                    </div>
                {{/if}}
                {{if $nocostprice}}
                     <div class="notibar announcement">
                        <p>{{$nocostprice}}</p>
                    </div>
                {{/if}}
            		{{if $sysAnnouncement}}
                    <div class="notibar announcement">
                        <a class="close"></a>
                        <h3>Announcement</h3>
                        <p>{{$sysAnnouncement}}</p>
                    </div><!-- notification announcement -->
                    {{/if}}
                    
                    <div class="two_third dashboard_left">
                    
                       <!--图表-->
                       {{if $userid==295 || $userid==1}}
                       {{if $showchart==1}}
                       <div style="float: left;width: 205px;font-size: 13px !important;line-height: 20px;" id="loading">
                        <img style="floa: left;height: 20px;width: 20px;" src="/fuman/images/jzd.gif" />
                         数据加载中，请稍后...
                      </div>
                         <iframe id="zgboke" onreadystatechange=stateChangeIE(this) onload=stateChangeFirefox(this) style="visibility: hidden;padding: 0px; width: 100%;" height="0" src="/welcome/ajaxbutton?op=getchart" frameborder="no" border="0" marginwidth="0" marginheight="0" scrolling="no"></iframe>
                <script language="javascript">
             function stateChangeIE(_frame)
                {
                   if (_frame.readyState=="interactive")
                 {
                      var loader = document.getElementById("loading");
                      loader.innerHTML      = "";
                      loader.style.display = "none";
                      _frame.style.visibility = "visible";
                     }
             }
                function stateChangeFirefox(_frame)
                  {
                      var loader = document.getElementById("loading");
                      var f= document.getElementById("zgboke");
                      f.height="550";
                      loader.innerHTML      = "";
                      loader.style.display = "none";
                      _frame.style.visibility = "visible";
             }

            </script>
                       <!--图表结束-->
                         <br clear="all" />
                       {{/if}}{{/if}}

                        {{if $newrecommend}}
                        <div class="widgetbox">
                            <div class="title"><h3>最新推荐</h3></div>
                            <div class="title" style="float:right">
                                <span>
                                    <a href="/welcome/ajaxbutton?op=showMoreRecommend" target="_blank">MORE...</a>
                                </span>
                            </div>
                          <!--  <div class="title" style="float:right">
                                <h3>
                                    <a href="javascript:void(0)" onClick="nextrecommend()">Next</a>
                                </h3>
                                <input type="hidden" id="pagenums" value="1">
                            </div>-->
                            <div class="widgetcontent">
                                <table cellpadding="0" cellspacing="0" border="0" class="stdtable stdtablecb overviewtable2">
                                    <colgroup>
                                        <col class="con0" />
                                        <col class="con1" />
                                        <col class="con0" />
                                        <col class="con1" />
                                        <col class="con0" />
                                        <col class="con1" />
                                    </colgroup>
                                    <thead>
                                    <tr>
                                        <th class="head0">商品编号</th>
                                        <th class="head0">类型</th>
                                        <th class="head1">商品名</th>
                                        <th class="head1">推荐人</th>
                                        <th class="head1">操作</th>
                                    </tr>
                                    </thead>

                                    <tbody id="recommendlist">
                                    {{foreach from=$newrecommend item=li key=key}}
                                    <tr>
                                        <td><a href="/product/productlist?ty=1&other={{$li.sku}}" target="_blank"><font color="red">{{$li.sku}}</font></a></td> <td>
                                        {{if $li.external_buy==1}} 
                                            外采购开发
                                        {{elseif $li.external_buy==2}}
                                            新品开发
                                        {{else}}
                                        在售产品
                                        {{/if}}
                                        
                                       </td>
                                        <td>
                                         {{$li.p_parent_name}}
                                            {{if $li.linkUrl}}
                                            &nbsp;
                                            <a href="{{$li.linkUrl}}" target="_blank"><img src="/fuman/images/icons/attachment.png" /> </a>
                                            {{/if}}
                                       </td>
                                        <td>{{$li.protector}}</td>
                                        <td class="center">
                                            {{if $li.return_flag eq 1}}
                                                {{if $li.cancel_flag eq 1}}
                                                    <span><a href="{{$li.cancel_reason}}" title="点击可以进入链接地址" style="color:red;">已上架</a></span>
                                                {{/if}}
                                                {{if $li.cancel_flag eq 2}}
                                                    <span style="color:red;" title="取消原因：{{$li.cancel_reason}}">已取消上架</span>
                                                {{/if}}
                                                {{if $li.cancel_flag eq 0}}
                                                    <a href="javascript:void(0);" onClick="sureAdd({{$li.id}},1,1,{{$li.external_buy}});">确认上架</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                                    <a href="javascript:void(0);" onClick="sureAdd({{$li.id}},2,0,{{$li.external_buy}});">取消上架</a>
                                                {{/if}}
                                            {{else}}
                                                <a href="javascript:void(0);" onClick="sureAdd({{$li.id}},1,1,{{$li.external_buy}});">确认上架</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                                <a href="javascript:void(0);" onClick="sureAdd({{$li.id}},2,0,{{$li.external_buy}});">取消上架</a>
                                            {{/if}}
                                        </td>
                                    </tr>
                                    {{/foreach}}

                                    </tbody>
                                </table>
                            </div>
                        </div>
                        <br />
                      {{/if}}
                      
                       <div class="widgetbox">
                        	<div class="title"><h3>最新入库</h3></div>
                           <div class="title" style="float:right">
                                <span>
                                    <a href="/welcome/ajaxbutton?op=showMoreStock" target="_blank">MORE...</a>
                                </span>
                           </div>
                            <div class="title" style="float:right"><h3><a href="javascript:void(0)" onClick="nexthasdstock()">Next</a></h3><input type="hidden" id="pagenum" value="1"></div>
                            <div class="widgetcontent">
                        <table cellpadding="0" cellspacing="0" border="0" class="stdtable stdtablecb overviewtable2">
                            <colgroup>
                                <col class="con0" />
                                <col class="con1" />
                                <col class="con0" />
                                <col class="con1" />
                                <col class="con0" />
                                <col class="con1" />
                            </colgroup>
                            <thead>
                                <tr>
                                    <th class="head0">商品编号</th>
                                    <th class="head1">入库数</th>
                                     <th class="head1">当前库存</th>
                                    <th class="head0">商品名</th>
                                   
                                    <th class="head0">入库时间</th>
                                    <th class="head1">备注</th>
                                </tr>
                            </thead>
                           
                            <tbody id="stocklist">
                            {{foreach from=$newstock item=li key=key}}
                                <tr>
                                    <td><a href="/product/productlist?ty=1&other={{$li.goods_sku}}" target="_blank"><font color="red">{{$li.goods_sku}}</font></a></td>
                                    <td>{{$li.goods_instock}}</td>
                                     <td>{{$li.stock}}</td>
                                    <td>{{$li.goods_name}}</td>
                                   
                                    <td class="center">{{$li.g_updatetime}}</td>
                                    <td class="center">{{$li.memo}}</td>
                                </tr>
                             {{/foreach}}
                              
                            </tbody>
                        </table>
                     </div>
                     </div>
                        <br />
                        
                        <div class="widgetbox">
                        	<div class="title"><h3>最新新品</h3></div>
                            <div class="title" style="float:right">
                                <span>
                                    <a href="/welcome/ajaxbutton?op=showMoreProduct" target="_blank">MORE...</a>
                                </span>
                            </div>
                            <div class="widgetcontent">
                                <div id="scroll1" class="mousescroll">
                                        <ul class="entrylist">
                                            <li>
                                                <div class="entry_wrap" style="min-height: 30px;">
                                                    <div class="entry_img"></div>
                                                    <div class="entry_content" style="width:30%;margin-left:80px;float:left;">
                                                        <h4><a href="" target="_blank"><B></B></a></h4>
                                                        <small></small>
                                                        <p></p>
                                                    </div>
                                                    <div style="width:15%;float:left;margin-left:80px;">
                                                        <h4>已上架</h4>
                                                        <p style="color:red;">
                                                        </p>
                                                    </div>
                                                    <div style="width:15%;float:left;margin-left:30px;">
                                                        <h4>未上架</h4>
                                                        <p>
                                                        </p>
                                                    </div>
                                                    <div style="width:6%;float: left;margin-left:30px;">
                                                        <h4>销量</h4>
                                                        <p>
                                                        </p>
                                                    </div>
                                                </div>
                                            </li>
                                         {{foreach from=$newproduct item=li key=key}}
                                              <li>
                                                <div class="entry_wrap" style="min-height: 100px;">
                                                    <div class="entry_img"><img src="{{$li.imagesurl}}" alt="" width="58" /></div>
                                                    <div class="entry_content" style="width:30%;margin-left:60px;float:left;">
                                                        <h4><a href="/product/productlist?ty=1&other={{$li.goods_sku}}" target="_blank" >
                                                                <p style="width:200px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;">
                                                                <B>
                                                                        {{$li.goods_name}}
                                                                </B>
                                                                </p>
                                                            </a></h4>
                                                        <small>[<font color="red">{{$li.goods_sku}}</font>]  {{$li.g_updatetime}}</small>
                                                        <p style="width:270px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;">
                                                            {{$li.standard}}{{$li.memo}}
                                                        </p>
                                                    </div>
                                                    <div style="width:15%;float:left;margin-left:30px;">
                                                        <!--<h4>已上架</h4> -->
                                                        <p style="font-size:12px;">
                                                            <span style="color:red;">{{$li.str_return_receivers}}</span><br/>
                                                            {{if $li.str_cancel}}
                                                                    取消上架：<br/>
                                                            {{$li.str_cancel}}
                                                            {{/if}}
                                                        </p>
                                                    </div>
                                                    <div style="width:15%;float:left;margin-left:30px;">
                                                      <!--  <h4>未上架</h4>-->
                                                        <p style="font-size:12px;">
                                                            {{$li.str_receivers}}<br/>
                                                        </p>
                                                    </div>
                                                    <div style="width:6%;float: left;margin-left:30px;text-align:center;">
                                                        <!--  <h4>销量</h4>-->
                                                        <p>
                                                            {{$li.saleNum}}
                                                        </p>
                                                    </div>
                                                </div>
                                              </li>
                                         {{/foreach}}
                                             
                                            </ul>                     
                                </div><!--#scroll1-->
                            </div><!--widgetcontent-->
                        </div><!-- widgetbox -->                            
                        
                        
                         
                        
                    </div><!--two_third dashboard_left -->
                    
                    <div class="one_third last dashboard_right">
						<div class="widgetbox">
                       {{if $workforutotal>0}}
                            <div class="title"><h3>停售商品信息</h3>
                            	<small>永久性停售商品，不支持派单，各销售平台下架</small>
                            </div>
                            <div class="widgetoptions">
                            </div>
                            <div class="widgetcontent userlistwidget nopadding">
                                <ul>
                                 {{foreach from=$workforulist item=li key=key}}
                                    <li>
                                        <div class="avatar"><img src="{{$li.thumb_url}}" alt="" width="60" height="60"></div>
                                        <div class="info">
                                            <a href="/product/productlist?ty=1&filtertype=skuc&other={{$li.number_sn}}" target="_blank">{{$li.number_sn}}</a> <br />
                                          <div style="text-overflow:ellipsis;white-space:nowrap;overflow:hidden;width:70%;">  {{$li.number_name}}</div> 更新时间：{{$li.opertime}}
                                        </div><!--info-->
                                    </li>
                                  {{/foreach}}
                                </ul>
                                {{if $workforutotal>10}}
                               	 <a class="more" href="/welcome/ajaxbutton?op=showMoreGoods&types=4" target="_blank" style="clear:both">View More</a>
                                {{/if}}
                                <div style="clear:both"></div>
                            </div><!--widgetcontent-->
                        {{/if}}  
                           
                          {{if $listxiatotal>0}}
                            <br>
                            <div class="title"><h3>暂停销售</h3>
                            <small>供应商停产/淡季等原因，暂时停止销售，销售平台库存设为0</small>
                            </div>
                            <div class="widgetoptions">
                            </div>
                            <div class="widgetcontent userlistwidget nopadding">
                                <ul>
                                 {{foreach from=$listxia item=li key=key}}
                                    <li>
                                        <div class="avatar"><img src="{{$li.thumb_url}}" alt="" width="60" height="60"></div>
                                        <div class="info">
                                            <a href="/product/productlist?ty=1&filtertype=skuc&other={{$li.number_sn}}" target="_blank">{{$li.number_sn}}</a> <br />
                                            <div style="text-overflow:ellipsis;white-space:nowrap;overflow:hidden;width:70%;">  {{$li.number_name}}</div> 更新时间：{{$li.opertime}}
                                        </div><!--info-->
                                    </li>
                                  {{/foreach}}
                                </ul>
                                	 {{if $listxiatotal>10}}
                                <a class="more" href="/welcome/ajaxbutton?op=showMoreGoods&types=7" target="_blank" style="clear:both">View More</a>
                                	{{/if}}
                                    <div style="clear:both"></div>
                            </div><!--widgetcontent-->
                           {{/if}}
                           
                           {{if $listqingtotal>0}}
                            <br>
                            <div class="title"><h3>清仓商品信息</h3>
                            <small>当前有库存，折扣销售，卖光为止</small>
                            </div>
                            
                            <div class="widgetoptions">
                            </div>
                            <div class="widgetcontent userlistwidget nopadding">
                                <ul>
                                 {{foreach from=$listqing item=li key=key}}
                                    <li>
                                        <div class="avatar"><img src="{{$li.thumb_url}}" alt="" width="60" height="60"></div>
                                        <div class="info">
                                            <a href="/product/productlist?ty=1&filtertype=skuc&other={{$li.number_sn}}" target="_blank">{{$li.number_sn}}</a> <br />
                                            <div style="text-overflow:ellipsis;white-space:nowrap;overflow:hidden;width:70%;">  {{$li.number_name}}</div> 更新时间：{{$li.opertime}}
                                        </div><!--info-->
                                    </li>
                                  {{/foreach}}
                                </ul>
                                {{if $listqingtotal>10}}
                                <a class="more"href="/welcome/ajaxbutton?op=showMoreGoods&types=5" target="_blank">View More</a>
                                	{{/if}}
                                 <div style="clear:both"></div>
                            </div><!--widgetcontent-->
                           {{/if}}
                           
                            {{if $listchongtotal>0}}
                            <br>
                            <div class="title"><h3>重新销售商品</h3>
                             <small>暂停销售产品，供应商恢复供货，销售旺季等，重新开始销售</small>
                            </div>
                            <div class="widgetoptions">
                            </div>
                            <div class="widgetcontent userlistwidget nopadding">
                                <ul>
                                 {{foreach from=$listchong item=li key=key}}
                                    <li>
                                        <div class="avatar"><img src="{{$li.thumb_url}}" alt="" width="60" height="60"></div>
                                        <div class="info">
                                            <a href="/product/productlist?ty=1&filtertype=skuc&other={{$li.number_sn}}" target="_blank">{{$li.number_sn}}</a> <br />
                                           <div style="text-overflow:ellipsis;white-space:nowrap;overflow:hidden;width:70%;">  {{$li.number_name}}</div> 更新时间：{{$li.opertime}}
                                        </div><!--info-->
                                    </li>
                                  {{/foreach}}
                                </ul>
                                 {{if $listchongtotal>10}}
                                <a class="more" href="/welcome/ajaxbutton?op=showMoreGoods&types=2" target="_blank" style="clear:both">View More</a>
                                	{{/if}}
                                    <div style="clear:both"></div>
                            </div><!--widgetcontent-->
                           {{/if}}

                            {{if $listmessagetotal>0}}
                            <br>
                            <div class="title"><h3>接收消息</h3></div>
                            <div class="widgetoptions">
                            </div>
                            <div class="widgetcontent userlistwidget nopadding">
                                <ul>
                                    {{foreach from=$listmessage item=li key=key}}
                                    <li>
                                        <div class="info" style="color:red;">{{$li.id}}{{$li.message_type}}</div>
                                        <div class="info">
                                            <a href="{{$li.url}}" target="_blank">{{$li.message}}</a> <br />
                                             发送时间：{{$li.instime}}
                                        </div><!--info-->
                                    </li>
                                    {{/foreach}}
                                </ul>
                                {{if $listmessagetotal>10}}
                                <a class="more" href="/welcome/ajaxbutton?op=showMoreMessage" target="_blank" style="clear:both">View More</a>
                                {{/if}}
                                <div style="clear:both"></div>
                            </div><!--widgetcontent-->
                            {{/if}}
                        </div>
                        
                        
                        <!--widgetbox-->                        
                                            
                    </div><!--one_third last-->
                    
                    
            </div><!-- #updates -->
            
        
        </div><!--contentwrapper-->
        
        <br clear="all" />
        
	</div><!-- centercontent -->
    
    
</div><!--bodywrapper-->
<!-- 是否确认上架弹出框-->
<!-- 模态框（Modal）交运内容 -->
<form action="/externalBuy/doRecommendGoods" enctype="multipart/form-data" method="post" name="dorecommendattributeform" id="dorecommendattributeform" target="_blank" style="font-size: 14px;font-family: Helvetica, 'Hiragino Sans GB', 'Microsoft Yahei', '微软雅黑', Arial, sans-serif;line-height: 21px;color: #666;">
    <div class="modal" id="dorecommendform" tabindex="-1" role="dialog" aria-labelledby="sexpressform" aria-hidden="true" style="margin-top: 60px;padding-top:60px;">
        <div class="modal-dialog">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal"
                            aria-hidden="true" onClick="javascript:$('#dorecommendform').hide();">× </button>
                    <h4 class="modal-title"><span id="addsure" style="font-size:18px;">确认上架</span></h4>
                </div>
                <div class="modal-body">
                    <table width="100%" border="0" cellspacing="0" cellpadding="0">
                        <tr>
                            <td align="left" width="20%"><span id="showname">上架地址</span></td>
                            <td align="left" width="80%">
                                <span id="settext">
                                    <input type="text" value="" name="address" id="address" />
                                </span>
                            </td>
                        </tr>
                    </table>
                    <div class="modal-footer">
                        <button type="button" class="btn btn-default"
                                data-dismiss="modal" style="display:none"> 关闭 </button>
                        <input type="hidden" name="flag" id="flag" value="">
                        <input type="hidden" name="extIds" id="extIds" value="">
                         <input type="hidden" name="types" id="types" value="">
                        <button type="button" class="btn btn-primary"  onclick="sureAdd(0,3,9)">保存</button>
                    </div>
                </div>
                <!-- /.modal-content -->
            </div>
            <!-- /.modal-dialog -->
        </div>
    </div>
</form>
<!-- /.modal -->
<script>
    //确认上架
    function sureAdd(id,add_flag,iscancel,types) {
        if(add_flag == 1){
            $("#addsure").text("确认上架");
            $("#showname").text("上架链接地址");
            $("#settext").html('<input type="text" value="" name="address" id="address" placeholder="请输入链接地址,例:http://www.baidu.com" />');
            $("#flag").val(1);
            $("#extIds").val(id);
			$("#types").val(types);
            $("#dorecommendform").show();
        }
        if(add_flag==2){
            $("#addsure").text("取消上架");
            $("#showname").text("取消原因");
            var str = "<input type='radio' name='reason'  value='1'>商品涉及侵权<br/>";
                str+="<input type='radio' name='reason'  value='2'>商品成本过高<br/>";
                str+="<input type='radio' name='reason'  value='3' >其他原因&nbsp;&nbsp;";
                str+="<input type='text'  name='address' id='address' placeholder='请输入取消原因'/>";

            $("#settext").html(str);
            $("#flag").val(2);
            $("#extIds").val(id);
			$("#types").val(types);
            $("#dorecommendform").show();
        }
        if(add_flag ==3){
            var id = $("#extIds").val();
			var types = $("#types").val();
            var flag = $("#flag").val(); //1为商品上架，2为取消商品上架
            var address = $("#address").val();

                if(flag==1){
                    if(!address){
                         alert("链接地址不能为空"); return false;
                    }
                }
                if(flag==2){
                    var reason = document.getElementsByName('reason');
                    for(var i=0;i<reason.length;i++){
                        if(reason[i].checked==true){
                            var reason_value = reason[i].value;
                        }
                    }
                    if(reason_value==1){
                        var address = "商品涉及侵权";
                    }
                    if(reason_value==2){
                        var address = "商品成本过高";
                    }
                    if(reason_value==3){
                        var address = $("#address").val();
                        if(!address){
                            alert("请填写取消原因");return false;
                        }
                    }
                }

             $.post("/welcome/ajaxbutton", {"op": "sureAddGoods","id":id,"address":address,"flag":flag,"types":types},
             function(data){
                            if(data==200)
                            {
                                alert("成功!");
                                window.location.reload();
                            }else{
                                alert("失败");return false;
                            }
                        },"text");
            //$("#dorecommendform").hide();
        }

    }
    function nextrecommend(){
        var num = parseInt($("#pagenums").val());
        $.post("/welcome/ajaxbutton", {"op": "getnextrecommend","num":num},
                function(data){
                    if(data)
                    {
                        num+=1;

                        $("#pagenum").val(num);
                        var tmp="";
                        for(var i=0;i<data.length;i++)
                        {
                            if(data[i].return_flag == 1){
                                if(data[i].cancel_flag ==1){
                                    var memo = "<span><a href='"+data[i].cancel_reason+"' title='点击可以进入链接地址' style='color:red;'>已上架</a></span>";
                                }
                                if(data[i].cancel_flag ==2){
                                    var memo = "<span style='color:red;' title='取消原因："+data[i].cancel_reason+"'>已取消上架</span>";
                                }
                                if(data[i].cancel_flag ==0){
                                    var memo =  "<a href='javascript:void(0);' onclick='sureAdd("+data[i].id+",1,1);'>确认上架</a>&nbsp;&nbsp;";
                                    var memo = memo+ "<a href='javascript:void(0);' onclick='sureAdd("+data[i].id+",2,0);'>取消上架</a>";
                                }
                               // var memo = "<span style='color:red;'>已确认上架</span>";
                            }else{
                                var memo =  "<a href='javascript:void(0);' onclick='sureAdd("+data[i].id+",1,1);'>确认上架</a>&nbsp;&nbsp;";
                                var memo = memo+ "<a href='javascript:void(0);' onclick='sureAdd("+data[i].id+",2,0);'>取消上架</a>";
                            }
                            tmp+="  <tr>";
                            tmp+="  <td><a href=\"/product/productlist?ty=1&other="+data[i].sku+"\" target=\"_blank\"><font color=\"red\">"+data[i].sku+"</font></a></td>";
                            tmp+="  <td>"+data[i].p_parent_name+"</td>";
                            tmp+="  <td>"+data[i].protector+"</td>";
                            tmp+="  <td>"+memo+"</td></tr>";

                        }
                        $("#recommendlist").html(tmp);
                    }

                },"json");
    }
    function showMoreRecommend() {
        window.open("/welcome/ajaxbutton?op=showMoreRecommend");
    }
</script>
</body>
</html>
